package com.itheima.day02_datatype;

public class Demo6_operator {
    public static void main(String[] args) {
        int a = 10;
        a++;
        --a;
        System.out.println("a = " + a);

        int b = a++ ;
        int x = 10;
        int y = --x;
        System.out.println("a = " + a);
        System.out.println("b = " + b);
        System.out.println("x = " + x);
        System.out.println("y = " + y);

        System.out.println("---------------------------------------");

        int c = 10;
        ++c;
        System.out.println("c = " + c);

        int i = 10;
        int rs = ++i;
        System.out.println("i = " + i);
        System.out.println("rs = " + rs);

        int j = 10;
        int rs2 = j++;
        System.out.println("rs2 = " + rs2);
        System.out.println("j = " + j);


    }
}
